<template lang="pug">
div.container
  div(class="list")
    div(class="list_item")(v-for="i in list" :key="i")
      h1(@click="handleShowItem(i)") {{i}}
div#test pug初体验
customTable
</template>

<script setup>
import customTable from './customTable.vue'
import { ref } from "vue";
const list = ref([1,2,3,4,5])
const handleShowItem = (e) => {
  console.log(e);
}
</script>

<style scoped lang="scss">
#test{
  background: #00CC66;
}
</style>